widget: Use an unchecked cast in _get_native()
authorTimm Bäder <mail@baedert.org>
Wed, 29 Apr 2020 06:07:45 +0000 (08:07 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 5 May 2020 06:20:10 +0000 (08:20 +0200)
commit75e202f02b8ad2ed546b12984197649373f62c28
treeea0892e1edd1ff2f2577f88814c8b628e5a9a04b
parent94d3fd84b54a51e320f7d02e819dcbe6c3c45746
widget: Use an unchecked cast in _get_native()

This is either no chagne because we know for a fact that the returned
value is a GtkNative - after all thats's the type we pass to
gtk_widget_get_ancestor().

Or it is a bug fix since casting NULL to a GtkNative using GTK_NATIVE()
is not going to work, but the API contract of gtk_widget_get_native()
explicitly allows a NULL return value.
gtk/gtkwidget.c